package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员码业务对象 dy_member_code
 *
 * @author ruoyi
 * @date 2024-08-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DyMemberCodeBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 支付类型(0微信， 1支付宝)
     */
    @NotNull(message = "支付类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer payType;

    /**
     * 支付订单号
     */
    @NotBlank(message = "支付订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tradeNo;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * token
     */
    private String token;

    /**
     * 凭证链接
     */
    @NotBlank(message = "凭证链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payUrl;

    /**
     * 状态（0未过期，1已过期，2已绑定）
     */
    private Long status;

    /**
     * 主播id
     */
    @NotNull(message = "主播id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long anchorId;

    /**
     * 主播名称
     */
    private String anchorName;

    /**
     * openid
     */
    private String openId;

    /**
     * 备注
     */
    private String remark;


    private Long clientId;
}
